"""
__author__ = 'berlinyoung'
@File   :conftest.py
@Date   :2022/5/21 13:57
-*- coding: utf-8 -*-
"""

# 添加日志
#
# 1.首先创建conftest.py 来定义日志的文件名和级别
# 2.pytest.ini
import logging

logging.basicConfig(level=logging.DEBUG,
                    format="%(asctime)s %(filename)s[line:%(lineno)d]%(levelname)s %(message)s",
                    datefmt="%a,%d %b %Y %H %H:%M:%S",
                    filename="log.log",
                    filemode="w")

